<template>
    <div>
        <router-view></router-view>
    </div>
</template>

<script>
    export default {
        name: "Base",
        components:{
        },
        created() {
            if (this.$store.state.base){
                if (this.$store.state.base.auditState===0){
                    this.$router.push("/base/base/baseRegister");
                }else if (this.$store.state.base.auditState===1){
                    this.$router.push("/base/base/wait");
                }else {
                    this.$router.push("/base/base/baseRegister");
                }
            }else {
                this.$router.push("/base/base/baseRegister");
            }

        }
    }
</script>

<style scoped>

</style>
